using System;
using System.Collections.Generic;
using System.Text;

namespace Deepcode.Flux.Core.UI.Controls
{
	/// <summary>
	/// Extended Button control that adds the hover behaviour 
	/// </summary>
	public class ActionButton : System.Web.UI.WebControls.Button
	{
		protected override void  AddAttributesToRender(System.Web.UI.HtmlTextWriter writer)
		{
 			base.AddAttributesToRender(writer);
			writer.AddAttribute("onmouseover", "this.className='actionbuttonover';");
			writer.AddAttribute("onmouseout", "this.className='actionbutton';");
		}
		
		protected override void OnInit(EventArgs e)
		{
			base.OnInit(e);
			this.CssClass = "actionbutton";
		}
	}
}
